function count(state = 10, action) {
    switch(action.type) {
        case "ADD":
            return state += action.res
        case "DEL":
            return state -= action.res
        default:
            return state
    }
}

export default count